home *** CD-ROM | disk | FTP | other *** search
/ Mac Easy 2010 May / Mac Life Ubuntu.iso / casper / filesystem.squashfs / usr / src / linux-headers-2.6.28-15 / drivers / mxc / security / sahara2 / Makefile < prev   
Encoding:
Makefile  |  2009-09-09  |  1.4 KB  |  48 lines

  1. # Makefile for the Linux Sahara2 driver
  2. #
  3. # This makefile works within a kernel driver tree
  4.  
  5. # Need to augment this to support optionally building user-mode support
  6. API_SOURCES = fsl_shw_sym.c  fsl_shw_user.c  fsl_shw_hash.c  fsl_shw_auth.c \
  7.               fsl_shw_hmac.c  fsl_shw_rand.c  sf_util.c  km_adaptor.c  fsl_shw_keystore.c  \
  8.               fsl_shw_wrap.c \
  9.  
  10.  
  11. SOURCES = sah_driver_interface.c  sah_hardware_interface.c            \
  12.           sah_interrupt_handler.c  sah_queue.c  sah_queue_manager.c   \
  13.           sah_status_manager.c  sah_memory_mapper.c
  14.  
  15.  
  16. # Turn on for mostly full debugging
  17. # DIAGS = -DDIAG_DRV_STATUS -DDIAG_DRV_QUEUE -DDIAG_DRV_INTERRUPT -DDIAG_DRV_IF
  18. # DIAGS += -DDIAG_DURING_INTERRUPT
  19.  
  20. # Turn on for lint-type checking
  21. #EXTRA_CFLAGS = -Wall -W -Wstrict-prototypes -Wmissing-prototypes
  22. EXTRA_CFLAGS += -DLINUX_KERNEL $(DIAGS)
  23.  
  24.  
  25. ifeq ($(CONFIG_MXC_SAHARA_POLL_MODE),y)
  26. EXTRA_CFLAGS += -DSAHARA_POLL_MODE
  27. EXTRA_CFLAGS += -DSAHARA_POLL_MODE_TIMEOUT=$(CONFIG_SAHARA_POLL_MODE_TIMEOUT)
  28. endif
  29.  
  30. ifeq ($(CONFIG_MXC_SAHARA_USER_MODE),y)
  31. EXTRA_CFLAGS += -DSAHARA_USER_MODE
  32. SOURCES +=
  33. endif
  34.  
  35. ifeq ($(CONFIG_PM),y)
  36. EXTRA_CFLAGS += -DSAHARA_POWER_MANAGMENT
  37. endif
  38.  
  39. EXTRA_CFLAGS += -Idrivers/mxc/security/sahara2/include
  40.  
  41. # handle buggy BSP -- uncomment if these are undefined during build
  42. #EXTRA_CFLAGS += -DSAHARA_BASE_ADDR=HAC_BASE_ADDR -DINT_SAHARA=INT_HAC_RTIC
  43.  
  44.  
  45. obj-$(CONFIG_MXC_SAHARA) += sahara.o
  46.  
  47. sahara-objs := $(SOURCES:.c=.o) $(API_SOURCES:.c=.o)
  48.